/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package damagecalculator;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Arrays;
import javax.swing.JButton;

/**
 *
 * @author Marcelo
 */
public class PanelTrackerButton extends JButton implements ActionListener {

    public PanelTrackerButton() {
        init();
    }

    private void init() {
        addActionListener(this);
    }

    public void actionPerformed(ActionEvent e) {
        System.out.println(DamageCalculatorView.ItemsPanelStore.getComponentCount());
        DamageCalculatorView.ItemsPanelStore.removeAll();
      //  DamageCalculatorView.ItemsPanelStore.validate();
       // DamageCalculatorView.ItemsPanelStore.repaint();
        System.out.println(DamageCalculatorView.ItemsPanelStore.getComponentCount());
    }
}